package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter@ToString
public class Employee {

    /** 不是超管 */
    public static final Integer ADMIN_NO = 0;
    //是超管
    public static final Integer ADMIN_YES = 1;
    /** 不是冻结 */
    public static final Integer STATUS_NO = 0;
    //是冻结
    public static final Integer STATUS_YES = 1;

    /** */
    private Long id;

    /** */
    private String name;

    /** */
    private String email;

    /** */
    private Integer age;

    /** */
    private Integer admin;

    /** */
    private Integer status;

    /** */
    private Long deptId;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date hiredate;

}